package com.bdqn.petmalldemo.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author:彭俊
 * @description:MyBatisPlus配置文件
 * @date:2020/2/261613
 */
@Configuration
@MapperScan(basePackages = {"com.bdqn.petmalldemo.mapper"})
public class MyBatisPlusConfig {
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        return new PaginationInterceptor();
    }
}
